﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;

namespace ReceiptTracker
{
    public partial class FormInputValue : Form
    {
        public string Msg 
        {
            get { return labelMsg.Text; }
            set { labelMsg.Text = value; } 
        }
        public string Input 
        {
            get { return textBoxInput.Text; }
            //set { textBoxInput.Text = value; }
        }
        public FormInputValue(string title, string message)
        {
            InitializeComponent();
            this.Text = title;
            this.Msg = message;
        }

        private void buttonOK_Click(object sender, EventArgs e)
        {
            this.DialogResult = DialogResult.OK;
        }

        private void buttonCancel_Click(object sender, EventArgs e)
        {
            this.DialogResult = DialogResult.Cancel;
        }
    }
}
